//
//  loadTableViewHeadView.m
//
//
//  Created by gynjobs on 2017/8/11.
//  Copyright © 2017年 gynjobs. All rights reserved.
//

#import "loanTableViewHeadView.h"

#import "UpCircleViewDownLable.h"

@interface loanTableViewHeadView ()
@property (weak, nonatomic) IBOutlet UIView *leftView;
@property (weak, nonatomic) IBOutlet UIView *centerView;
@property (weak, nonatomic) IBOutlet UIView *rightView;

@end

@implementation loanTableViewHeadView
-(instancetype)init{
    self = [super init];
    if (self) {
        self = [[[NSBundle mainBundle]loadNibNamed:NSStringFromClass([self class]) owner:self options:nil]firstObject];
        [self addSubWidghView];
    }
    return self;
}
-(void)addSubWidghView{
        UpCircleViewDownLable *leftDownLable = [[UpCircleViewDownLable alloc]init];
        leftDownLable.backgroundColor = [UIColor clearColor];
        [self.leftView addSubview:leftDownLable];
        [leftDownLable mas_makeConstraints:^(MASConstraintMaker *make) {
            make.center.equalTo(self.leftView);
        }];
    UpCircleViewDownLable *centerDownLable = [[UpCircleViewDownLable alloc]init];
    centerDownLable.backgroundColor = [UIColor clearColor];
    [self.centerView addSubview:centerDownLable];
    [centerDownLable mas_makeConstraints:^(MASConstraintMaker *make) {
        make.center.equalTo(self.centerView);
    }];
    UpCircleViewDownLable *rightDownLable = [[UpCircleViewDownLable alloc]init];
    rightDownLable.backgroundColor = [UIColor clearColor];
    [self.rightView addSubview:rightDownLable];
    [rightDownLable mas_makeConstraints:^(MASConstraintMaker *make) {
        make.center.equalTo(self.rightView);
    }];
    
    
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
